﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace soma.Models.Resources
{
    [DataContractAttribute]
    public class Website
    {
        [DataMemberAttribute]
        public string Name { get; set; }

        [DataMemberAttribute]
        public List<Link> Links { get; set; }

        public Website(string name)
        {
            Name = name;
            Links = new List<Link>();
            Links.Add(new Link("linkrels/websites/query_by_tag", "/websites/" + Name.ToLower()));
        }
    }
}